package org.pupil.filter;

/**
 * @Description: 拦截器响应消息
 * @Author: pupil
 * @Date: 2024/07/17 下午 5:49
 */
public class FilterResponse {

    private final Boolean result; // 结果，当结果为true时传递给下一个拦截器，当为false时返回异常

    private final Exception exception; // 错误

    public FilterResponse(Boolean result, Exception exception) {
        this.result = result;
        this.exception = exception;
    }

    public Boolean getResult() {
        return result;
    }

    public Exception getException() {
        return exception;
    }
}
